<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<jsp:directive.page language="java"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>栏目信息编辑</title>
		<%@ include file="/commons/includes/taglib.jspf"%>
		<%@ include file="/commons/includes/meta.jspf"%>
		<%@ include file="/commons/includes/script.jspf"%>
		<%@ include file="/commons/includes/style.jspf"%>
		<script type="text/javascript" src="catalogEdit.js"></script>
	</head>
	<body>
		<form name="catalogEdit" action="catalogEdit.shtml" method="post">
			<input type="hidden" name="event" value="save" />
			<input type="hidden" name="id" value="${form.id}" />
			<button class="btn2" id="btnReturn">
				返回
			</button>
			<button class="btn2" type="submit">
				保 存
			</button>
			<c:if test="${not empty form.id}">
				<button class="btn3" id="btnAdd">
					继续新增
				</button>
				<button class="btn2" id="btnDel">
					删 除
				</button>
			</c:if>
			<table width="100%" class="editBlock">
				<tr>
					<td class="label" width="15%">
						栏目名称
					</td>
					<td>
						<input class="text" type="text" name="title" value="${form.title}" />
					</td>
				</tr>
				<tr>
					<td class="label" width="15%">
						级别
					</td>
					<td>
						<input class="text" type="text" name="level" value="${form.level}" />
					</td>
				</tr>
				<tr>
					<td class="label" width="15%">
						上级栏目
					</td>
					<td>
						<select id="superior" name="superior" style="width: 50%">
							<option value=""></option>
							<c:forEach var="catalog" items="${catalogList}">
								<option value="${catalog.id}" ${(form.superior==catalog.id)?
									'selected=\'selected\'':''}>
									${catalog.title}
								</option>
							</c:forEach>
						</select>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>